<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href=__PUBLIC__/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style1.css" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>
    <script src="__PUBLIC__/js/jquery-3.1.1.min.js" ></script>
    <script src="__PUBLIC__/js/ui.js" ></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
    <form class="form-inline definewidth m20" action="<?php echo U('user/passdo'); ?>" method="get">  
   <br/> <br/> <br/> 
    输入新密码：
    <input type="password" name="pass" id="rolename"class="abc input-default" placeholder="" value="">&nbsp;&nbsp;<br/> <br/> <br/> 
     &nbsp; &nbsp;再次确认：
    <input type="password" name="pass1" id="rolename"class="abc input-default" placeholder="" value="">&nbsp;&nbsp;

    <button type="submit"id="hejiajun" class="btn btn-primary">更改</button>&nbsp;&nbsp; 
</form>

		</body>
                
                <script>
                $(document).ready(function() {  
                 $("#hejiajun").click(function() {  
           
                    var url=$('form').attr('action');
                $.ajax({
                type:"post",
                url:url,
                data:{'pass':$('input[name=pass]').val(),'pass1':$('input[name=pass1]').val()},
                success:function(data){
                if(data==0){
                alert("请输入相同密码");

                }else{
                   alert("更改成功"); 
                }
                }
                }); 
                return false;
                 });     
                });     
                    
                    </script>
		</html>


